<?php
/**
 +---------------------------------------<br/>
 * 控制器:订单<br/>
 +---------------------------------------
 * @category membership
 * @package web.front.action
 * @author skygreen skygreen2001@gmail.com
 */
class Action_Order extends Action
{
	//订单列表
	public function orderList(){
		$this->loadCss("resources/css/orderList.css");
		$api = new UtilApi();
        $cardno = HttpSession::get("cardno");
        $orderdata = array();
        if($cardno){
        	$data = array();
	        $data['cardno'] = $cardno;
			$data['type'] = 1;
			$data['sdate'] = "";
			$data['edate'] = "";
			$data['page'] = "";
			$api = new UtilApi();
	        $result = $api->view_invoice($data);
	        $orderdata = $result->data;
        }
        
        $this->view->set("code",$cardno);
        $this->view->set("data",$orderdata);
	}

	//充值几率列表
	public function rechargeList(){
		$this->loadCss("resources/css/orderList.css");
		$api = new UtilApi();
        $cardno = HttpSession::get("cardno");
        $orderdata = array();
        if($cardno){
        	$data = array();
	        $data['cardno'] = $cardno;
			$data['type'] = 0;
			$data['sdate'] = "";
			$data['edate'] = "";
			$data['page'] = "";
			$api = new UtilApi();
	        $result = $api->view_invoice($data);
	        $orderdata = $result->data;
        }
        $this->view->set("code",$cardno);
        $this->view->set("data",$orderdata);
	}
}

?>